home *** CD-ROM | disk | FTP | other *** search
/ Exploring Aeronautics / NASA Exploring Aeronautics.iso / pc / source / debug.dxr / 00001_main.ls next >
Encoding:
Text File  |  1998-06-02  |  972 b   |  40 lines

  1. global runString, outputString, x
  2.  
  3. on startMovie
  4.   set runString to EMPTY
  5.   set outputString to EMPTY
  6.   set x to 0
  7. end
  8.  
  9. on showMemoryStatus
  10.   set freeByteString to "freeBytes:" && string(the freeBytes)
  11.   set the text of member "freebytesdisplay" to freeByteString
  12. end
  13.  
  14. on parseMessageWindow
  15.   set lastLine to the lineCount of member "messageWindow" - 1
  16.   set aString to line lastLine of the text of member "messageWindow"
  17.   put aString
  18.   if aString contains "put" then
  19.     putMessageWindow(aString)
  20.   end if
  21. end
  22.  
  23. on putMessageWindow commandLine
  24.   set localX to 0
  25.   if stringp(commandLine) then
  26.     set aString to commandLine
  27.   else
  28.     set aString to the text of member "messageWindow"
  29.   end if
  30.   set runString to "tell the stage to" && aString && "into localX"
  31.   do(runString)
  32.   set output to aString && ":" && string(localX)
  33.   set the text of member "messageWindow" to output
  34. end
  35.  
  36. on doMessageWindow
  37.   set aString to the text of member "messageWindow"
  38.   do(aString)
  39. end
  40.